package com.wx.web.interceptor;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import net.schmizz.sshj.connection.channel.direct.Session;
/**
 * 
 * @author wk
 *
 */
public class LoginSessionListener implements HttpSessionListener { 
	
	public static Map userMap = new HashMap();  
	private   AppSessionContext myc=AppSessionContext.getInstance();  
	  
	public void sessionCreated(HttpSessionEvent httpSessionEvent) {  
	myc.AddSession(httpSessionEvent.getSession());  
	}  
	  
	public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {  
	HttpSession session = httpSessionEvent.getSession();  
	myc.DelSession(session);  
	}  

}